using System;
using System.Collections.Generic;

namespace Model.Database
{
    [Serializable]
    public partial class UserInfo
    {
        public UserInfo()
        {
            this.Roles = new List<Role>();
            this.Departments = new List<Department>();
        }

        public string UserInfoId { get; set; }
        public string LoginName { get; set; }
        public string LoginPassword { get; set; }
        public string Nickname { get; set; }
        public string Headphoto { get; set; }
        public string Email { get; set; }
        public string Phone { get; set; }
        public string QQ { get; set; }
        public Nullable<bool> Sex { get; set; }
        public Nullable<System.DateTime> Birthday { get; set; }
        public Nullable<int> Age { get; set; }
        public string Homeplace { get; set; }
        public string Address { get; set; }
        public string Hobby { get; set; }
        public string Sign { get; set; }
        public Nullable<System.DateTime> LastLoginTime { get; set; }
        public string LastLoginIp { get; set; }
        public bool IsForbidden { get; set; }
        public Nullable<bool> IsSuper { get; set; }
        public Nullable<System.DateTime> AddTime { get; set; }
        public Nullable<System.DateTime> ModifyTime { get; set; }
        public virtual ICollection<Role> Roles { get; set; }
        public virtual ICollection<Department> Departments { get; set; }
    }
}
